#ifndef HARDENEMY_H
#define HARDENEMY_H
#include "hardbullet.h"
#include <QPixmap>
#include "data.h"


class hardenemy
{
public:
    hardenemy();
    //更新坐标
    void updatePosition();
    void shoot();

public:
    QPixmap m_enemy;
    //位置
    int m_X;
    int m_Y;
    //敌机的矩形边框（碰撞检测）
    QRect m_Rect;
    //状态
    bool m_Free;
    //速度
    int m_Speed;
    //弹匣
    hardbullet m_bullets[BULLET_NUM];
    //子弹发射间隔记录
    int m_recorder;
};

#endif // HARDENEMY_H
